package com.ideajava.test;

import com.geccocrawler.gecco.annotation.Gecco;
import com.geccocrawler.gecco.annotation.HtmlField;
import com.geccocrawler.gecco.spider.HtmlBean;

/**
 * @Description :
 * @FileName: Article.java
 * @Author :WeiHui.Zhang
 * @Data : 2016年3月25日 下午3:51:37
 * @Version:V1.00
 */
@Gecco(matchUrl = "http://www.ideajava.org/article/{index}", pipelines = { "consolePipeline" })
public class Article implements HtmlBean {

	private static final long serialVersionUID = 1L;

	//@HtmlField(cssPath = "div.col-md-9 > h3.panel-title ")
	@HtmlField(cssPath=".panel-title h3")
	private String tilte;

	//@HtmlField(cssPath = "div.col-md-9 > div.panel panel-primary > #content")
	@HtmlField(cssPath=".panel-body.article")
	private String content;

	public String getTilte() {
		return tilte;
	}

	public void setTilte(String tilte) {
		this.tilte = tilte;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
